import request from '@/utils/request'
import {getToken} from "@/utils/auth";

// 查询上传信息
export function getFileUpload(query,token) {
    return request({
        url: '/system/bigFileUpload/getFileInfo',
        headers:{ Authorization: "Bearer " + token },
        method: 'get',
        params: query
    })
}

export function upLoadData(data,uploadInfo,token) {
    console.log('上传数据')
    return request({
        url: '/system/bigFileUpload/uploadData',
        repeatSubmit:true,
        headers:{ Authorization: "Bearer " + token },
        method: 'post',
        params:{buf:data,sysFileUpload:uploadInfo}
    })
}